/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const router = {
  hidden: false,
  path: '/warehouseManagement',
  component: Layout,
  redirect: '/warehouseManagement/modiBill-list',
  meta: {
    title: '库内管理',
    icon: 'documentation',
    roles: ['BusinessModuleManagement.WarehouseManagement']
  },
  children: [
    {
      hidden: false,
      path: 'modiBill-list',
      name: 'WarehouseManagementModiBill',
      component: () => import('@/views/warehouseManagement/modiBill/list'),
      meta: { title: '调整管理', icon: '', roles: ['ModiBillManagement.ModiBill'] }
    },
    {
      hidden: false,
      path: 'inventoryBill-list',
      name: 'WarehouseManagementInventoryBill',
      component: () => import('@/views/warehouseManagement/inventoryBill/list'),
      meta: { title: '盘点管理', icon: '', roles: ['InventoryBillManagement.InventoryBill'] }
    },
    {
      hidden: false,
      path: 'inStockGoodsDetail-list',
      name: 'WarehouseManagementInStockGoodsDetail',
      component: () => import('@/views/warehouseManagement/inStockGoodsDetail/list'),
      meta: { title: '库存管理', icon: '', roles: ['InStockGoodsDetailManagement.InStockGoodsDetail'] }
    }
  ]
}

export default router
